package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageQueryParam {
    private Integer page;
    private Integer pageSize;
    private String name;
    private Integer gender;
    private Integer index;


    public Integer getIndex() {
        return (page - 1) * pageSize;
    }
}
